package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DishService {
    public void saveWithFlavor(DishDTO dishDTO);
//菜品分页查询
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);
//菜品批量删除
    void deleteBatch(List<Long> ids);
//根据id查询菜品对应的口味数据
    DishVO getByIdwithFlavor(Long id);
//根据id修改菜品基本信息和对应的口味信息
    void updateWithFlavor(DishDTO dishDTO);

    List<Dish> list(Long categoryId);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

    void startOrStop(Integer status, Long id);
}
